﻿using System;
using Moonlite.Languages.Andromeda.Implementation;

namespace Moonlite.Languages.Andromeda
{
    public sealed class DefaultAndromedaParserFactoryProvider : AbstractAndromedaParserFactoryProvider
    {
        private static DefaultAndromedaParserFactoryProvider instance;
        public static DefaultAndromedaParserFactoryProvider Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DefaultAndromedaParserFactoryProvider();
                }

                return instance;
            }
        }

        protected override IAndromedaParserFactory CreateParserFactoryCore()
        {
            return new AndromedaParserFactory();
        }

        private DefaultAndromedaParserFactoryProvider()
        {
        }
    }
}
